package com.huluobo.a2203parkdemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2203parkdemo.R
import com.huluobo.base.bean.PatrolBeanItem

/**
 *  Created by LC on 2024/8/1.
 */
class PatrolAdapter : BaseQuickAdapter<PatrolBeanItem, BaseViewHolder>(R.layout.item_patrol) {
    override fun convert(helper: BaseViewHolder, item: PatrolBeanItem) {
        helper.setText(R.id.item_patrol_start_time_now_tv, item.pStart)
        helper.setText(R.id.item_patrol_end_time_now_tv, item.pEnd)
        helper.setText(R.id.item_patrol_time_now_tv, item.pTime)
        helper.setText(R.id.item_patrol_group_tv,"第${item.pGroupId}小队")
    }
}